//Eg9-2.cpp
#include <iostream>
using namespace std;
void main()
{
	char c,char a[50],char s1[100];
	cout<<"use get() input char: ";
	while((c=cin.get())!='\n')					//L1
		cout<<c;
	cout<<endl;
	cout<<"use get(a,10) input char: ";
	cin.get(a,10); 								//L2
	cout<<a<<endl;
	cin.ignore(1);								//L3
	cout<<"use getline(s1,10) input char: ";
	cin.getline(s1,10);							//L4
	cout<<s1<<endl;
}
